//
//  LeftVerticalSingleLineView.m
//  OntheRoadV4
//
//  Created by hz on 11/8/13.
//  Copyright (c) 2013 EricHuang. All rights reserved.
//

#import "LeftVerticalSingleLineView.h"
#import "QWKitConfig.h"
#import "CommonCGDrawings.h"

@implementation LeftVerticalSingleLineView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        _lineColor = V4_SeparatorLineColor;
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}

- (void)awakeFromNib
{
    [super awakeFromNib];
    if (_lineColor == nil) {
        _lineColor = V4_SeparatorLineColor;
    }
    self.backgroundColor = [UIColor clearColor];
}

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    draw1PxVerticalStroke(context, CGPointMake(rect.origin.x + POINT_MINUS_ONE_PIXEL, rect.origin.y), rect.size.height, _lineColor.CGColor);
}

@end
